package com.wm.service.Impl;

import com.wm.dao.PermDao;
import com.wm.entity.RbacPerm;
import com.wm.service.PermService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class PermServiceImpl implements PermService {
    @Autowired
    private PermDao permDao;

    @Override
    public List<RbacPerm> getPermsByUserId(int userId) {
        return permDao.getPermByUserId(userId);
    }

    @Override
    public RbacPerm getByLink(String link) {
        return permDao.getByLink(link);
    }
}
